#!/bin/bash

# the build folder
echo Cleaning ./build
cd ./build
for f in *
do
	if [ "$f" != ".svn" ]; then
		rm -rf "$f"
	fi
done
cd ..

# Qt projects
function clean_qt_folder {
	echo Cleaning $1
	rm -rf $1/debug
	rm -rf $1/release
	rm -rf $1/tmp
	rm $1/Makefile*
} 

# delete all files except Qt projects
cd ./tools/Qt
for f in *
do
	if [ -d "$f" ]; then
		clean_qt_folder $f
	fi
done
cd ../..
